#include <windows.h>
#include <tchar.h>
#include <stdio.h> // 可能用于调试和输出
namespace SV_PIPE_CONST {

HANDLE hPipe_bad = CreateNamedPipe(
	lpszPipename,
	PIPE_ACCESS_DUPLEX,
	PIPE_TYPE_MESSAGE |
	PIPE_READMODE_MESSAGE |
	PIPE_WAIT,
	PIPE_UNLIMITED_INSTANCES,
	BUFSIZE,
	BUFSIZE,
	0,
	NULL);

HANDLE  hPipe_good = CreateNamedPipe(
	lpszPipename,
	FILE_FLAG_FIRST_PIPE_INSTANCE |
	PIPE_ACCESS_DUPLEX,
	PIPE_TYPE_MESSAGE |
	PIPE_READMODE_MESSAGE |
	PIPE_WAIT,
	PIPE_UNLIMITED_INSTANCES,
	BUFSIZE,
	BUFSIZE,
	0,
	NULL);
}